
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { KhxxEntity } from './entities/khxxentity';

import { KhxxProxy } from './khxxproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/clientdata/kh/v1.0/khxx_frm',
    entityType: KhxxEntity
})
export class KhxxRepository extends BefRepository<KhxxEntity> {
    public name = 'KhxxRepository';

    public proxy: KhxxProxy;
    public paginationInfo = {
        KhxxEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(KhxxProxy, null);
    }
}